package pl.edu.pw.polygen.modeler.client;

/**
 * @author borysfan
 * @version 0.0.1
 */
public class Point {
	
	/**
	 * x coordinate of point
	 */
	private double x;
	/**
	 * y coordinate of point
	 */
	private double y;
	
	
	/**
	 * Default constructor.
	 */
	public Point() {
		this.x=0.0;
		this.y=0.0;
	}

	public Point(double x, double y) {
		this.x = x;
		this.y = y;
	}
	
	public double getX() {
		return x;
	}
	public void setX(double x) {
		this.x = x;
	}
	public double getY() {
		return y;
	}
	public void setY(double y) {
		this.y = y;
	}
	
	/**
	 * @return rounded value of x coordinate
	 */ 
	public int getRoundX(){
		return (int)Math.round(x);
	}
	
	/**
	 * @return rounded value of y coordinate
	 */
	public int getRoundY(){
		return (int)Math.round(y);
	}
	
}
